/*
 * @Author: fankewen 835656320@qq.com
 * @Date: 2023-12-15 13:43:28
 * @LastEditors: fankewen 835656320@qq.com
 * @LastEditTime: 2023-12-20 10:24:10
 * @FilePath: \symbolimg\demo\src\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '../utils/request';
//新增图源
export function AddImageSource(data) {
    return request({
        url: '/file/uploadImage',
        method: 'post',
        data,
        headers: {
            "Content-Type": "multipart/form-data"
        }
    });
};
// 获取所有图源列表
export function GetAllImage(data) {
    return request({
        url: '/file/getAllImage',
        method: 'post',
        data,
    });
};
//删除
export function DeleteImageById(data) {
    return request({
        url: '/file/deleteImageById',
        method: 'post',
        data,
    });
};
//修改
export function UpdateImageById(data) {
    return request({
        url: '/file/updateImageById',
        method: 'post',
        data,
        headers: {
            "Content-Type": "multipart/form-data"
        }
    });
};
// 条件查询获取图源列表
export function GetImageList(data) {
    return request({
        url: '/file/getImageList',
        method: 'post',
        data,
    });
};
// axios.request({
//     url: URL,
//     method: 'post',//get方法可以省略
//     headers: {//http请求头
//         token: 'Beard iuflaoweinvhauh'
//     },
//     params: {//get方法请求参数  ?page=1&pageSize=10
//         page: 1,
//         pageSize: 10
//     },
//     data: {//http请求体 
//         name: 'Jack'
//     }
// })